package cn.cheegon.blog.entity.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @Desc:
 * @Author: cheegon
 * @Date: Create in 2024/6/27  下午1:49
 */
@Data
public class CommentDto {

    private Long id;

    @Schema(description = "用户id")
    private Long uid;

    @Schema(description = "用户昵称")
    private String nickname;

    @Schema(description = "用户头像")
    private String avatar;

    @Schema(description = "博客id")
    private Long blogId;

    @Schema(description = "博客标题")
    private String blogTitle;

    @Schema(description = "顶级评论的id,0->无")
    private Long rootCommentId;

    @Schema(description = "子评论回复的哪个评论的id,0->无")
    private Long toCommentId;

    @Schema(description = "是否是作者评论1是,0不是")
    private Integer adminComment;

    @Schema(description = "点赞数")
    private Integer likeCount;

    @Schema(description = "评论内容")
    private String content;

    @Schema(description = "状态 0待审核,1审核通过,2审核失败")
    private Integer status;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
}
